import { createStore } from 'vuex';
import UserModule from './user';
import VuexPersistence from 'vuex-persist';

const vuexLocal = new VuexPersistence({
  storage: window.localStorage,
});
export default createStore({
  state: {},
  mutations: {},
  actions: {},
  modules: {
    user: UserModule,
  },
  plugins: [vuexLocal.plugin],
});
